package bignum;



import java.math.BigInteger;

/**
 * 用来存储一个超出long类型的帧整数
 * @author Raymond
 * @create 2025/4/23 14:10
 */
public class MyBigInteger {
    public static void main(String[] args) {
        BigInteger a = new BigInteger("111111111111111111111111111111111111111111111");
        BigInteger b = new BigInteger("2");
        //加
        System.out.println("a.add(b) = " + a.add(b));
        //减
        System.out.println("a.subtract(b) = " + a.subtract(b));
        //乘
        System.out.println("a.multiply(b) = " + a.multiply(b));
        //除
        System.out.println("a.divide(b) = " + a.divide(b));
    }
}
